home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 September / maximum-cd-2000-09.iso / Vampire the Masquerade / vampire_demo.exe / Codex.nob / CodexSector.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-22  |  1.3 KB  |  61 lines

  1. public class CodexSector extends Codex {
  2.    public native int SetFlags(int var1);
  3.  
  4.    public native int GetNumPortals();
  5.  
  6.    public native int GetFlags();
  7.  
  8.    public native int ClearFlags(int var1);
  9.  
  10.    public native int GetNumSurfaces();
  11.  
  12.    public CodexSector(int x) {
  13.       if (x < 0) {
  14.          super.guid = 0;
  15.       } else {
  16.          super.guid = x;
  17.       }
  18.  
  19.    }
  20.  
  21.    public static native int FindAtPos(float[] var0, int var1);
  22.  
  23.    public native boolean EnablePortals();
  24.  
  25.    public int FindAtPos(float[] position) {
  26.       return FindAtPos((float[])position, 0);
  27.    }
  28.  
  29.    public int FindAtPos(float x, float y, float z, int hintSectorGuid) {
  30.       float[] pos = new float[3];
  31.       pos[0] = x;
  32.       pos[1] = y;
  33.       pos[2] = z;
  34.       return FindAtPos(pos, hintSectorGuid);
  35.    }
  36.  
  37.    public int FindAtPos(float x, float y, float z) {
  38.       float[] pos = new float[3];
  39.       pos[0] = x;
  40.       pos[1] = y;
  41.       pos[2] = z;
  42.       return FindAtPos((float[])pos, 0);
  43.    }
  44.  
  45.    public int FindAtPos(CodexVector vec, int hintSectorGuid) {
  46.       return FindAtPos(vec.AsArray(), hintSectorGuid);
  47.    }
  48.  
  49.    public int FindAtPos(CodexVector vec) {
  50.       return FindAtPos((float[])vec.AsArray(), 0);
  51.    }
  52.  
  53.    public native int GetNumVertices();
  54.  
  55.    public native int GetNumRegions();
  56.  
  57.    public native int GetFirstThing();
  58.  
  59.    public native boolean DisablePortals();
  60. }
  61.